<?php
    $first = false;

    if (isset($specialDests) && !empty($specialDests))
        foreach ($specialDests as $destination):
            ?>  

            <li style="<? if ($first) echo 'display:none';$first = true; ?>" class="destinations_special">
                <!-- ADDED DURING CURRENCY UPGRADE -->
                <?php
                $currency = isset($_GET['currency']) ? '&currency=' . $_GET['currency'] : '';
                $link_dest = base_url('search?dest_hot=' . strtolower($destination->name) . '&preview=1' . $currency);
                ?>
                <a href="<?= $link_dest ?>">
               
                    <span class="inner_text">

                        <span class="hotel-name"><?= $destination->name ?></span>
                        <span class="more-info"><?= $destination->hotels_count + $destination->accommodations_count ?> <?= lang('sod.properties') ?></span>

                    </span>

                    <?php $thumbnail = $host_url . 'destinations/' . $destination->photo_path . '/thumb_1110x550/' . $destination->photo_name; ?>

                    <img src="<?= $thumbnail ?>" alt="<?= $destination->name; ?>" />

                </a>

            </li>
        <?php
        endforeach;?>